package top.hhydra.mimall.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import top.hhydra.mimall.entity.Product;
import top.hhydra.mimall.vo.ProductDetailVo;
import top.hhydra.mimall.vo.ProductVo;
import top.hhydra.mimall.vo.ResponseVo;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author SaiyaEmon
 * @since 2020-02-11
 */
public interface IProductService extends IService<Product> {
    /**
     * 分页查询商品
     * @param pageNum
     * @param pageSize
     * @param categoryId
     * @return
     */
    ResponseVo<IPage<ProductVo>> products(Integer pageNum, Integer pageSize, Integer categoryId);

    /**
     * 查询商品详情
     * @param productId
     * @return
     */
    ResponseVo<ProductDetailVo> product(Integer productId);
}
